# 拿到页面源发
# 提取和解析数据
import requests
from lxml import etree

url = "https://qingdao.zbj.com/sem/index?pmcode=132790918"
resp = requests.get(url)
#print(resp.text)
# 解析
html = etree.HTML(resp.text)
#print("四大护法顾客撒谎就")
#print(html)
# 拿到每一块的数据
divs = html.xpath("/html/body/div[1]/div[5]/div[1]/div/div[2]/div/div[1]")

print(divs)
for div in divs:
    price = div.xpath("./a/span")
    print(price)
resp.close()  # 关掉resp
